<?php
class news extends database{
	protected $_table = "tbl_news";
	public function listnews($limit){
		$sql = "select * from $this->_table limit $limit";
		$this->query($sql);
		return $this->fetchall();
	}
	
}